'use strict';

const Controller = require('egg').Controller;

class RoleController extends Controller {
  async getList() {
    const { ctx } = this;
    const result = await ctx.service.role.getRoleList();
    ctx.returnBody({
      data: result,
    });
  }
}

module.exports = RoleController;
